import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

/**
 * 创建状态仓库
 */
 export default new Vuex.Store({
    state: {
        login: false,
    },
    mutations: {
        updatelogin(state, bool) {
            state.login = bool
        }
    },
    getters: {
        selectlogin(state) {
            return state.login
        }
    }
})